package com.yjt.fresh.utils;

import android.app.Activity;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.lzy.imagepicker.loader.ImageLoader;
import com.yjt.fresh.MyApp;
import com.yjt.fresh.R;


/**
 * Created by Martin on 2017/1/18.
 */

public class GlideImageLoader implements ImageLoader {

  @Override
  public void displayImage(Activity activity, String path, ImageView imageView, int width, int height) {
    Glide.with(MyApp.getContext()).load(path).placeholder(R.mipmap.ic_launcher)
            .error(R.mipmap.ic_launcher).override(width, height).dontAnimate().into(imageView);
  }

  @Override
  public void clearMemoryCache() {

  }
}
